<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/2/20
 * Time: 20:31
 */

namespace app\domain;


use app\server\hightPec;

class highPecData
{
    public function addHighPecLog($user_id, $data) {

        $data = [
            'user_id' => $user_id,
            'data_log' => serialize($data),
            'create_time' => date('Y-m-d h:i:s', time()),
        ];

        $res = hightPec::addHighPecInfo($data);

        return $res;
    }

    public function getHighPecLogInfo ($where, $field) {

        $info = hightPec::getUserCurrentLog($where, $field);

        return unserialize($info['data_log']);
    }
}